﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ViewProviderCarDeclinedOccupation.aspx.cs" 
    Inherits="Provider_CarInsurance_ViewProviderCarDeclinedOccupation"  Title="View Declined Car Occupation"%>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Declined Occupation</h1>
        <div class="right_action">
            <asp:HyperLink runat="server" ID="lnkNewClaimInfo" NavigateUrl="~/Provider/CarInsurance/ProviderCarDeclinedOccupation.aspx"
                Text="New"></asp:HyperLink>
        </div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="2"
            DataKeyNames="ProviderCarOccupationId,ProviderCompanyId" DataSourceID="sqlDsProviderCarOccupation"
            CssClass="progridstyle" GridLines="None" EmptyDataText="There are no data records to display.">
            <Columns>
                <asp:BoundField DataField="ProviderCarOccupationId" HeaderText="ProviderCarOccupationId"
                    InsertVisible="False" ReadOnly="True" SortExpression="ProviderCarOccupationId"
                    Visible="False" />
                <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" ReadOnly="True"
                    SortExpression="ProviderCompanyId" Visible="False" />
                <asp:BoundField DataField="CXOccupationId" HeaderText="CXOccupationId" SortExpression="CXOccupationId"
                    Visible="False" />
                <asp:BoundField DataField="CX Description" HeaderText="CX Description" SortExpression="CX Description" />
                <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />           
                <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                <asp:BoundField DataField="RefCEUserId" HeaderText="RefCEUserId" SortExpression="RefCEUserId"  Visible="false" />
                <asp:BoundField DataField="CreatedDate" HeaderText="CreatedDate" SortExpression="CreatedDate"
                    Visible="False" />
                <asp:BoundField DataField="ModifiedDate" HeaderText="ModifiedDate" SortExpression="ModifiedDate" />
                <asp:HyperLinkField HeaderText="" Text="Edit" Target="_self" DataNavigateUrlFormatString="ProviderCarDeclinedOccupation.aspx?CXOccupationId={0}"
                    DataNavigateUrlFields="CXOccupationId"></asp:HyperLinkField>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle CssClass="progridover" />
            <HeaderStyle CssClass="progridheader" />
            <EditRowStyle />
            <AlternatingRowStyle CssClass="progridodd" />
            <RowStyle CssClass="progrideven" />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsProviderCarOccupation" runat="server" ConnectionString="<%$ ConnectionStrings:CE_DBConnectionString %>"
            SelectCommand="sprocProviderCarOccupationSelectItemListViewDeclined" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:SessionParameter Name="ProviderCompanyId" SessionField="ProviderCompanyId" Type="Int64" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
            ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
    </div>
</asp:Content>